import request from '@/utils/request'

// 查询人才信息列表
export function listInfo(query) {
  return request({
    url: '/system/info/list',
    method: 'get',
    params: query
  })
}

// 查询人才信息详细
export function getInfo(id) {
  return request({
    url: '/system/info/' + id,
    method: 'get'
  })
}

// 新增人才信息
export function addInfo(data) {
  return request({
    url: '/system/info',
    method: 'post',
    data: data
  })
}

// 修改人才信息
export function updateInfo(data) {
  return request({
    url: '/system/info',
    method: 'put',
    data: data
  })
}

// 删除人才信息
export function delInfo(id) {
  return request({
    url: '/system/info/' + id,
    method: 'delete'
  })
}

// 修改人才信息
export function talentProcess(data) {
  return request({
    url: '/system/info/talentProcess?id=' + data,
    method: 'get',
  })
}

export function adminProcess(data) {
  return request({
    url: '/system/info/adminProcess?id=' + data,
    method: 'get',
  })
}

export function processCancel(data) {
  return request({
    url: '/system/info/processCancel?id=' + data,
    method: 'get',
  })
}

export function processRollback(data) {
  return request({
    url: '/system/info/processRollback?id=' + data,
    method: 'get',
  })
}

export function reprocess(data) {
  return request({
    url: '/system/info/reprocess?id=' + data,
    method: 'get',
  })
}

export function getSelectOption(data) {
  return request({
    url: '/system/info/getSelectOption',
    method: 'get',
  })
}

export function getPartyList(data) {
  return request({
    url: '/system/info/getPartyList',
    method: 'get',
  })
}